import router from './router'
import NProgress from 'nprogress' // Progress 进度条
import 'nprogress/nprogress.css'// Progress 进度条样式

NProgress.configure({ easing: 'ease', speed: 500, showSpinner: false})

router.beforeEach((to, from, next) => {
    NProgress.start()
    console.log(to, from, next);
    next()

})

router.afterEach(() => {
    NProgress.done() // 结束Progress
})